<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>地震局培训平台</title>
		<!--<link rel="stylesheet" href="bootstrap/css/bootstrap.css" />-->
		
		<link rel="stylesheet" href="style/myProject.css" />
	</head>
	<body>
		<div id="show">
			<div class="i_title3"></div>
			<div id="content">
				<div class="list">
					<div class="box">
						<div class="part">
							<div class="text">公共自行车维护</div>
							<div class="text2"><div class="name">曹先生</div><div class="phone">188888888</div></div>
						</div>
						<div class="part">
							<div class="date">日期</div>
							<div class="date2">2017-07-29</div>
						</div>
						<div class="part">
							<div class="time">操作</div>
							<div class="time2">退出团体</div>
						</div>
					</div>
					
				</div>
				<div class="pagebox">
					<div class="pageborder"></div>
					<div class="numbox">
						<div class="page">1</div>
						<div class="page in">2</div>
						<div class="page">3</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="script/jquery.min.js"></script>
		<script type="text/javascript" src="script/ishoock.tools.js"></script>
		<script type="text/javascript" src="script/common.js"></script>
		<script>
			//getData();
			$(".pagebox .page").on("click",function(){
				$(".pagebox .page").removeIn();
				$(this).in();
				//getData();
			});
			
			// 获取我的团队数据请求
			$.ajax({
				type: "GET",
				url: host +"/user/getListOfTeam?userId=1",
				dataType: "json",
				success: function(data){
					console.log(data)
					$.each(data.result,function(index,item){
						$('#listData').append('<div class="box">'+
												'<div class="part">'+
													'<div class="text">'+item.projectTitle+'</div>'+
													'<div class="text2"><div class="name">'+item.userName+'</div><div class="phone">'+item.userPhone+'</div></div>'+
												'</div>'+
												'<div class="part">'+
													'<div class="date">日期</div>'+
													'<div class="date2">'+item.signDate+'</div>'+
												'</div>'+
												'<div class="part">'+
													'<div class="time">操作</div>'+
													'<div class="time2">'+item.hours+'</div>'+
												'</div>'+
											'</div>')
					})
					
				}
			
			})
			
			/* function getData(){
				$(".list").empty();
				for(var i=0;i<5;i++){
					var item='<div class="box">'
						+'<div class="part part1">'
							+'<div class="text">公共自行车维护</div>'
							+'<div class="text2"><div class="name">曹先生</div><div class="phone">188888888</div></div>'
						+'</div>'
						+'<div class="part">'
							+'<div class="date">日期</div>'
							+'<div class="date2">2017-07-29</div>'
						+'</div>'
						+'<div class="part">'
							+'<div class="time">操作</div>'
							+'<div class="time2">退出团体</div>'
						+'</div>'
					+'</div>';
					$(".list").append(item);
				}
			} */
			/user/getListOfTeam
		</script>
	</body>
</html>
